home *** CD-ROM | disk | FTP | other *** search
/ CSi Master: Ableton Live 5 / CSi Master: Ableton Live 5.iso / pc / rsrc / locrsrc / mtprsrc-old.dir / Internal_138_SHARED-Volume Bar.ls < prev    next >
Encoding:
Text File  |  2005-10-31  |  993 b   |  37 lines

  1. on mouseDown
  2.   mouseVpos = the mouseV
  3.   spriteTop = the top of sprite the clickOn
  4.   spriteBottom = the bottom of sprite the clickOn
  5.   repeat with z = 1 to the maxinteger
  6.     mouseVpos = the mouseV
  7.     spriteTop = the top of sprite the clickOn
  8.     spriteBottom = the bottom of sprite the clickOn
  9.     if (mouseVpos < (spriteTop + 8)) and (the soundLevel <> 7) then
  10.       puppetSound("high beep")
  11.       volumeUp()
  12.     else
  13.       if mouseVpos > (spriteBottom - 10) then
  14.         puppetSound("high beep")
  15.         muteVolume()
  16.       else
  17.         if mouseVpos > (spriteBottom - 22) then
  18.           puppetSound("high beep")
  19.           volumeDown()
  20.         end if
  21.       end if
  22.     end if
  23.     checkTime = the ticks + 15
  24.     repeat with a = 1 to the maxinteger
  25.       if the stillDown then
  26.         put the ticks & ":" & checkTime
  27.         if the ticks > checkTime then
  28.           checkTime = 0
  29.           exit repeat
  30.         end if
  31.         next repeat
  32.       end if
  33.       abort()
  34.     end repeat
  35.   end repeat
  36. end
  37.